jQuery(document).ready(function(){

	$('#contactform').submit(function(){

		$("#message").slideUp(750,function() {
		$('#message').hide();

 		$('#submit')
			.after('<img src="http://www.anmolcards.net/assets/images/ajax-loader.gif" class="loader1" />')
			.attr('disabled','disabled');
		$.post("contact/contactMail", $("#contactform").serialize(),
			function(data){
				document.getElementById('message').innerHTML = "Thank you ! Got your message, Will get Back to you soon.";
				$('#message').slideDown('slow');
				$('#contactform img.loader1').fadeOut('slow',function(){$(this).remove()});
				$('#submit').removeAttr('disabled');
				if(data.error) $('#contactform').slideUp('slow');

			}
		);

		});

		return false;

	});

});